package com.zh.mapstruct;

import com.zh.pojo.domain.CustomerCar;
import com.zh.pojo.dto.CustomerCarDto;
import com.zh.pojo.vo.CustomerCarVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Driver 对象转换 映射结构
 */

@Mapper
public interface CustomerStructMapper {
    CustomerStructMapper INSTANCE = Mappers.getMapper(CustomerStructMapper.class);


    /**
     * CustomerCar 对象拷贝到 CustomerCarVo对象
     * @param customerCar
     * @return
     */
    CustomerCarVo customerCarConvertToCustomerCarVo(CustomerCar customerCar);
    /**
     * customerCarDto 对象拷贝到 CustomerCar对象
     * @param customerCarDto
     * @return
     */
    CustomerCar customerCarDtoConvertToCustomerCar(CustomerCarDto customerCarDto);


}
